<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加用户页面</title>
</head>
<%
	String path = request.getContextPath();
	request.setAttribute("path", request.getContextPath());
	request.setAttribute("jsPath", path+"/js");
%>
<style type="text/css">
	th{font-size:20px;padding:20px;}
	td{text-align:right;line-height:2em;}
	form{width:40%;margin:auto;}
</style>
<script type="text/javascript" src="${jsPath}/jquery-1.8.3.min.js"></script>
<script>
	$(function(){
		var msg = $("#msg").html();
		if(msg != null){
			alert(msg);
		}
	});
</script>
<body>
	<c:if test="${not empty msg}"><p style="display:none" id="msg">${msg}</p></c:if>
	<form action="${path}/functionAuthority/add" method="post">
		<table>
			<tr>
				<th colspan="2">添加用户功能信息</th>
			</tr>
			<tr>
				<td>名称：</td>
				<td><input type="text" name="name" required/></td>
			</tr>
			<tr>
				<td>权限检查值：</td>
				<td><input type="text" name="keyValue" required/></td>
			</tr>
			<tr>
				<td>是否是分组：</td>
				<td style="text-align:left;">
					<select name="isgroup">
						<option value="1" selected="selected">是</option>
						<option value="2">否</option>
					</select>
				</td>
			</tr>
			<!-- <tr>
				<td>删除状态：</td>
				<td style="text-align:left;">
					<select name="deleteFlag">
						<option value="1">正常</option>
						<option value="2">删除</option>
					</select>
				</td>
			</tr> -->
			<tr>
				<td></td>
				<td style="text-align:left;">
					<input type="reset" value="重置"/>
					<input type="submit" value="添加"/>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>